async function test(){
    await new Promise((resolve, reject)=>{
        setTimeout(()=>{
            console.log(1)
            resolve()
        },1000)
    })
    console.log(2)
}